//
//  YPKLocalDataManager.h
//  Yopark
//
//  Created by 王家骏 on 14/11/11.
//  Copyright (c) 2014年 developer. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <FMDatabase.h>
//#import "YPKMyKeyModel.h"
#import "HomePageHouseModel.h"
//#import "YPKThirdLeaseListDetailModel.h"

@interface YPKLocalDataManager : NSObject

@property (nonatomic, strong) NSString *dbPath;

+ (YPKLocalDataManager *)getInstance;
- (void)createTable;

//首页列表
- (void)insertIntoHotHouseWithArray:(NSArray *)array;
- (NSMutableArray *)queryHotHouseWithHouseType:(NSString *)houseType;
- (void)deleteHouseWithHouseType:(int)houseType;

//修改个人信息
- (void)insertIntoMyInfo:(NSDictionary *)dic;
- (void)updateIntoMyInfo:(NSDictionary *)dic;
//- (YPKMyKeyModel *)queryMyInfoWithUser_id:(NSString *)user_id;
- (void)deleteMyInfoWithUserID:(NSString *)user_id;

//搜索记录表
- (void)insertRecordWithString:(NSString *)string;
- (NSMutableArray *)queryRecordList;
- (void)clearTheRecords;

//收藏表
- (void)insertFavoriteWithInfo:(HomePageHouseModel *)homePageHouseModel;
- (BOOL)queryHouseIsFavoritedWithHouseId:(NSString *)houseId;
- (void)deleteFavoriteWithHouseId:(NSString *)houseId;
- (NSMutableArray *)queryFavoriteItems;

@end
